/***
    Amrita ITEWS - Copyright (C) 2009 Amrita Vishwa Vidyapeetham, Amritapuri.
                                       (http://www.amrita.edu)
    ***************************************************************************
    This file is part of the Amrita ITEWS distribution.
    Amrita ITEWS is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License (version 2) as published
    by the Free Software Foundation AND MODIFIED BY the Amrita ITEWS exception.
    ***NOTE*** The exception to the GPL is included to allow you to distribute
    a combined work that includes Amrita ITEWS without being obliged to provide
    the source code for proprietary components outside of the Amrita ITEWS
    software. Amrita ITEWS is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
    Public License for more details. You should have received a copy of the GNU
    General Public License and the Amrita ITEWS license exception along with
    Amrita ITEWS if not then it can be viewed here:
    http://itews.amrita.ac.in/license.html.


    Documentation, latest information, license and contact details are at:
    http://itews.amrita.ac.in/


    Amrita ITEWS source code can be found at:
    http://code.google.com/p/itews


    The initial code-base of Amrita ITEWS was developed by Amrita Vishwa
    Vidyapeetham as part of the project titled,"Intelligent & Interactive
    Telematics using Emerging Wireless Technologies for Transport Systems
    (ITEWS)" sponsored by Technology Information Forecasting and Assessment
    Council (TIFAC), India.
***/

/*! \file config_space_gprsclgw.h
    \brief GPRSCLGW Config Space Header.
*/
#ifndef CONFIG_SPACE_GPRSCLGW_H_
#define CONFIG_SPACE_GPRSCLGW_H_

/*! \brief GPRS CL GW Config Space Name. */
#define CONFIG_SPACE_NAME               "GPRSCLGW"

/*! \brief Total number of configuration space config values.*/
#define CONFIG_SPACE_VAL_COUNT      13

#ifdef CONFIG_SPACE_DEF_VALS
/*! \brief default values for configuration values.*/
const char *config_space_def_vals[]=
        {
            "204.152.191.5",    //gprs TCP server IP
            "80",               //GPRS server port
            "airtelgprs.com",   //GPRS APN server address
            "5000",             //GPRS stream socket receive timeout.
            "amma",             //username which can be changed
            "amma",             //password which can be changed
            "common",           //username which cannot be changed through tiny http config
            "common",           //PASSWORD which cannot be changed through tiny http config
            "GPRS",             //TUCODE
            "192.168.1.254",    //Directory service URL
            "0",                //directory service is disabled
            "192.168.1.1",      //IP address
            "255.255.255.0"     //Netmask
        };
#else
extern const char *config_space_def_vals[];
#endif
/*! \brief GPRS TCP Server IP Address String Table Index. */
#define GPRSCLGW_TCP_SERVER_IP      0

/*! \brief GPRS TCP Server Port String Table Index. */
#define GPRSCLGW_TCP_SERVER_PORT    1

/*! \brief GPRS Access Point Server String Table Index. */
#define GPRSCLGW_GPRS_APN_SERVER    2

/*! \brief GPRS Stream Socket Recv Timeout String Table Index. */
#define GPRSCLGW_ST_RECV_TIMEOUT    3

/*! \brief First Username String Table Index. */
#define AUTH_USERNAME1              4

/*! \brief First User Password String Table Index. */
#define AUTH_PASSWORD1              5

/*! \brief Second Username String Table Index. */
#define AUTH_USERNAME2              6

/*! \brief Second User Password String Table Index. */
#define AUTH_PASSWORD2              7

/*! \brief TU code string table id. */
#define TUCODE                      8

/*! \brief Directory Service URL id. */
#define DIR_SERVICE_URL             9

/*! \brief Directory Service enable id. */
#define DIR_PUBLISHER_IS_ENABLED    10

/*! \brief IP address. */
#define IP_ADDRESS                  11

/*! \brief Net mask     . */
#define NET_MASK                    12
#endif /*CONFIG_SPACE_GPRSCLGW_H_*/
